package com.qj.sys.controller;

import com.qj.sys.db.entity.BackUpDataSceneEnum;
import com.qj.sys.db.service.BackUpService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author dlw
 * @date 2025-06-03 12:03
 */
@RestController
@Slf4j
public class BackUpDataController {
    @Resource
    private BackUpService backUpService;

    @GetMapping("/backUpData")
    public void backUpData() {
        backUpService.backUp(BackUpDataSceneEnum.USER_FORWARD);
    }
}
